package cn.watson.test;

import cn.watson.PetHomeApp;
import cn.watson.system.service.IDetailService;
import cn.watson.system.service.IBrandTypeService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
* @Description: 测试类
* @Author: ZhangRui
* @Version: 1.0
* @Date:  2022/6/28 19:39
*/
@RunWith(SpringRunner.class)
@SpringBootTest(classes = PetHomeApp.class)
public class Detail {

    @Autowired
    private IDetailService detailService;

    @Autowired
    private IBrandTypeService typeService;

    @Test
    public void testName() throws Exception {
        detailService.loadAll().forEach(System.out::println);
    }

}
